/** @file sleepTest.c
 *
 * @author Nora Tarano <ntarano@andrew.cmu.edu>
 * @author Yuan Meng <yuanm@andrew.cmu.edu>
 * @author Yipeng Yun <yipengy@andrew.cmu.edu>
 *
 * @date Nov 17, 2011
 *
 * @brief Sleep and time demo.
 *
 * Links to libc.
 */

#include <unistd.h>
#include <stdlib.h>
#include <bits/fileno.h>
#include <errno.h>

int main(int argc, char *argv[]) {	
	// sleep for 10 seconds
	unsigned long t0 = time();
	sleep(10000);
	return time() - t0;
}
